/* 基础重置 */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 响应式字体 */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* 基础样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  flex: 1;
}

/* 页面头部 */
.page-header {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-time {
  font-size: 0.875rem;
  color: #666;
  text-align: right;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* 用户信息模块 */
.user-info {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-details {
  flex: 1;
}

.username {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
}

.team-name {
  font-size: 0.875rem;
  color: #666;
}

.sales-info {
  text-align: right;
}

.sales-amount {
  font-size: 1.125rem;
  color: #333;
}

.amount {
  color: #f60;
  font-weight: 500;
}

.detail-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-btn:hover {
  background: #f5f5f5;
}

/* 统计信息模块 */
.stats-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

/* 底部横幅 */
.banner {
  background: #ffeb3b;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.banner-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-info {
    flex-direction: column;
    text-align: center;
  }

  .sales-info {
    text-align: center;
  }

  .stats-info {
    grid-template-columns: 1fr;
  }
}

/* 浏览器兼容性修复 */
@supports (-webkit-touch-callout: none) {
  /* Safari specific styles */
  .detail-btn {
    padding: 0.5rem 1rem;
  }
}

@-moz-document url-prefix() {
  /* Firefox specific styles */
  .detail-btn {
    padding: 0.4rem 1rem;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE specific styles */
  .stats-info {
    display: flex;
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 1 1 200px;
    margin: 0.5rem;
  }
}
